package org.jkyec.lambda.basic;

import java.util.Arrays;
import java.util.List;
import java.util.function.UnaryOperator;

public class OperatorTest {

	public static void main(String[] args) {
		List<String> list = Arrays.asList(new String[]{"a", "b", "c"});
		UnaryOperator<String> operator = (character) -> { return character + " " + character; }; 
		
		list.forEach(singleCharacter -> {
			System.out.println(operator.apply(singleCharacter));
		});
	}

}
